package com.hsmpay.mobile.dao.trans.impl;

import com.hsmpay.common.dao.Impl.BaseDaoSupport;
import com.hsmpay.mobile.dao.trans.TransPriorSettleDao;
import com.hsmpay.mobile.pojo.trans.TransPriorSettle;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;

/**
 * 结算前收款交易记录 sqlmap 接口 transPriorSettleDao
 * 对应pojo TransPriorSettle
 *
 * @author 颜铃璋
 *         创建时间：2013-1-22
 */
@Repository("transPriorSettleDao")
public class TransPriorSettleDaoImpl extends BaseDaoSupport<TransPriorSettle, Long> implements TransPriorSettleDao<TransPriorSettle, Long> {
    /**
     * 查询交易 收款信息
     *
     * @param terminalId
     * @param merchantOrderId
     * @return
     * @throws SQLException
     */
    public TransPriorSettle searchTransPriorSettle(String terminalId, String merchantOrderId) throws SQLException {
        TransPriorSettle transPr = new TransPriorSettle();
        transPr.setTerminalId(terminalId);
        transPr.setMerchantOrderId(merchantOrderId);
        return searchEntity(transPr);
    }
}
